package com.xiaoxing.paimai.mvp.ui.adapter;

import android.content.Context;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.xiaoxing.paimai.R;
import com.xiaoxing.paimai.mvp.ui.entity.InfoByQRCodeMid;

import java.util.List;


public class ChuKuLieBiaoAdapter extends BaseQuickAdapter<InfoByQRCodeMid, BaseViewHolder> {

    private Context mContext;

    public ChuKuLieBiaoAdapter(Context context, @Nullable List<InfoByQRCodeMid> data) {
        super(R.layout.item_chu_ku_lie_biao, data);
        this.mContext = context;
    }

    @Override
    protected void convert(BaseViewHolder helper, InfoByQRCodeMid item) {

        helper.setText(R.id.txt_title, "物料描述：" + item.get_material() + ",数量："
                + item.get_outnum() + " " + item.get_unit() + "\n领取时间："
                + item.get_outtime());
    }

}
